/**
 * Generate time : 2011-05-25 8:10:22
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMTypemanagementset
 * 
 */
public class ZMCMTypeManageMentSet extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdMaterialId = " "; /* 物资分类主键 */
	private String fdMaterialName = " "; /* 物资分类名称 */
	private String fdCheckinPeopleId = " "; /* 到货登记人员主键 */
	private String fdValidatePeopleId = " "; /* 验收人员主键 */
	private String fdImportPeopleId = " "; /* 入库人员主键 */
	private String fdExportPeopleId = " "; /* 出库人员主键 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("物资分类主键");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdMaterialName");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("物资分类名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCheckinPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("到货登记人员主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValidatePeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("验收人员主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdImportPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("入库人员主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdExportPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("出库人员主键");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCMTypeManageMentSet() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdMaterialId - 物资分类主键
	 * 
	 * @return the fdMaterialId
	 */
	public String getFdMaterialId() {
		return this.fdMaterialId;
	}

	/**
	 * set the fdMaterialId - 物资分类主键
	 */
	public void setFdMaterialId(String fdMaterialId) {
		this.fdMaterialId = fdMaterialId;
	}
	
	/**
	 * get the fdMaterialName - 物资分类名称
	 * 
	 * @return the fdMaterialName
	 */
	public String getFdMaterialName() {
		return this.fdMaterialName;
	}

	/**
	 * set the fdMaterialName - 物资分类名称
	 */
	public void setFdMaterialName(String fdMaterialName) {
		this.fdMaterialName = fdMaterialName;
	}

	/**
	 * get the fdCheckinPeopleId - 到货登记人员主键
	 * 
	 * @return the fdCheckinPeopleId
	 */
	public String getFdCheckinPeopleId() {
		return this.fdCheckinPeopleId;
	}

	/**
	 * set the fdCheckinPeopleId - 到货登记人员主键
	 */
	public void setFdCheckinPeopleId(String fdCheckinPeopleId) {
		this.fdCheckinPeopleId = fdCheckinPeopleId;
	}

	/**
	 * get the fdValidatePeopleId - 验收人员主键
	 * 
	 * @return the fdValidatePeopleId
	 */
	public String getFdValidatePeopleId() {
		return this.fdValidatePeopleId;
	}

	/**
	 * set the fdValidatePeopleId - 验收人员主键
	 */
	public void setFdValidatePeopleId(String fdValidatePeopleId) {
		this.fdValidatePeopleId = fdValidatePeopleId;
	}

	/**
	 * get the fdImportPeopleId - 入库人员主键
	 * 
	 * @return the fdImportPeopleId
	 */
	public String getFdImportPeopleId() {
		return this.fdImportPeopleId;
	}

	/**
	 * set the fdImportPeopleId - 入库人员主键
	 */
	public void setFdImportPeopleId(String fdImportPeopleId) {
		this.fdImportPeopleId = fdImportPeopleId;
	}

	/**
	 * get the fdExportPeopleId - 出库人员主键
	 * 
	 * @return the fdExportPeopleId
	 */
	public String getFdExportPeopleId() {
		return this.fdExportPeopleId;
	}

	/**
	 * set the fdExportPeopleId - 出库人员主键
	 */
	public void setFdExportPeopleId(String fdExportPeopleId) {
		this.fdExportPeopleId = fdExportPeopleId;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMaterialId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialId")), fdMaterialId));
		setFdMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialName")), fdMaterialName));
		setFdCheckinPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckinPeopleId")), fdCheckinPeopleId));
		setFdValidatePeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidatePeopleId")), fdValidatePeopleId));
		setFdImportPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdImportPeopleId")), fdImportPeopleId));
		setFdExportPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdExportPeopleId")), fdExportPeopleId));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdMaterialId", StringUtils.toString(fdMaterialId, eiMetadata.getMeta("fdMaterialId")));
		map.put("fdMaterialName", StringUtils.toString(fdMaterialName, eiMetadata.getMeta("fdMaterialName")));
		map.put("fdCheckinPeopleId", StringUtils.toString(fdCheckinPeopleId, eiMetadata.getMeta("fdCheckinPeopleId")));
		map.put("fdValidatePeopleId", StringUtils.toString(fdValidatePeopleId, eiMetadata.getMeta("fdValidatePeopleId")));
		map.put("fdImportPeopleId", StringUtils.toString(fdImportPeopleId, eiMetadata.getMeta("fdImportPeopleId")));
		map.put("fdExportPeopleId", StringUtils.toString(fdExportPeopleId, eiMetadata.getMeta("fdExportPeopleId")));
		return map;

	}
}